﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace ScrumTracker.Models
{
    //AssigneeId	CreatedAt	CreatedBy	Description	EstimatedHours	IssueId	IssueType	PercentDone	StoryId
    [ScaffoldTable(true)]
    public class TaskMetadata
    {
        [HiddenInput(DisplayValue = false)]
        public int StoryId { get; set; }
        [Display(Order = 1)]
        [Required(AllowEmptyStrings = false)]
        [DataType(DataType.MultilineText)]
        public string Description { get; set; }
        [Display(Name="Estimated Hours")]
        public int EstimatedHours { get; set; }
        [Display(Name="Assignee", Order=2)]
        [UIHint("AssigneeId")]
        public int AssigneeId { get; set; }
        [Display(Name="Percent Done")]
        public decimal PercentDone { get; set; }
        [ScaffoldColumn(false)]
        public int IssueId { get; set; }
        [ScaffoldColumn(false)]
        public int IssueType { get; set; }
        [ScaffoldColumn(false)]
        public int CreatedBy { get; set; }
        [ScaffoldColumn(false)]
        public DateTime CreatedAt { get; set; }
        [ScaffoldColumn(false)]
        public string AssigneeName { get; set; }
        [ScaffoldColumn(false)]
        public bool IsDeleted { get; set; }
    }
}